package com.ws.universal.tools.loading.button;

import android.animation.ValueAnimator;
import android.graphics.Matrix;
import android.graphics.Path;

import kotlin.TypeCastException;
import kotlin.jvm.internal.Intrinsics;


public class LoadingButton$scaleFailedPath$$inlined$apply$lambda$1 implements ValueAnimator.AnimatorUpdateListener {
    // $FF: synthetic field
    final LoadingButton this$0;
    // $FF: synthetic field
    final Matrix $scaleMatrix$inlined;
    // $FF: synthetic field
    final int $viewHeight$inlined;

    LoadingButton$scaleFailedPath$$inlined$apply$lambda$1(LoadingButton var1, Matrix var2, int var3) {
        this.this$0 = var1;
        this.$scaleMatrix$inlined = var2;
        this.$viewHeight$inlined = var3;
    }

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        Intrinsics.checkExpressionValueIsNotNull(valueAnimator, "valueAnimator");
        Object var10000 = valueAnimator.getAnimatedValue();
        if (var10000 == null) {
            throw new TypeCastException("null cannot be cast to non-null type kotlin.Float");
        } else {
            float value = (Float) var10000;
            this.$scaleMatrix$inlined.setScale(value, value, (float) (this.this$0.getWidth() / 2), (float) (this.$viewHeight$inlined / 2));
            Path var3 = LoadingButton.access$getMFailedPath$p(this.this$0);
            if (var3 == null) {
                Intrinsics.throwNpe();
            }

            var3.transform(this.$scaleMatrix$inlined);
            var3 = LoadingButton.access$getMFailedPath2$p(this.this$0);
            if (var3 == null) {
                Intrinsics.throwNpe();
            }

            var3.transform(this.$scaleMatrix$inlined);
            this.this$0.invalidate();
        }
    }
}
